<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${createLinkTo(dir:'css', file:'main2.css')}" />
<title>Admin Page</title>
</head>

<body>
<div>
    <div align="center" class="header">
    <img src="${createLinkTo(dir:'images', file:'OptimumSol.gif')}" width="388" height="60" />
	<div class="divlogout"><g:link class="link1" controller="adminPage">Home</g:link><span class="link1style">&nbsp;|&nbsp;</span>
						   <g:link class="link1" controller="login" action="doLogout">Logout</g:link></div>
    </div>
<div>
<div class="content">
	<g:form action="${!designation.id ? 'add' : 'edit'}" id="${designation?.id}">
		<g:hasErrors bean="${designation}">
			<div class="errors">
				<g:renderErrors bean="${designation}" as="list" />
			</div>
		</g:hasErrors>
		<table align="center" width="300px" border="0">
			<tr>
				<td valign="bottom" class="head1" colspan="3"><g:if test="${!designation.id}">New</g:if><g:else>Update</g:else> Employee Designation
				<p class="para1"><g:if test="${!designation.id}">Create new</g:if><g:else>Update</g:else> employee designation record. Fields marked with (<span class="required">*</span>) are required</p>
				<hr class="hr1"/></td>
			</tr>
			<tr>
				<td valign="top">
					<table width="100%" class="tableForm" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td  class="tdheader1" colspan="2">Designation Information</td>
						</tr>
						<tr><td height="10px"/></tr>
						<tr>
							<td class="label1" width="100px"><span class="required">*&nbsp;</span>Designation Name:</td>
							<td><g:textField class="textbox1" name="designation.designationName" value="${fieldValue(bean:designation, field:'designationName')}" /></td>
						</tr>
						<tr><td height="10px"/></tr>
					</table>					
				</td>
			</tr>
			<tr>
				<td valign="top">
					<table width="100%" class="tableForm" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td  class="tdheader1" colspan="2">Default Base Salary</td>
						</tr>
						<tr><td height="10px"/></tr>
						<tr>
							<td class="label1" width="100px">Hourly Salary:</td>
							<td><g:textField class="textbox1" name="salary.hourlySalary" value="${fieldValue(bean:salary, field:'hourlySalary')}" /></td>
						</tr>
						<tr>
							<td class="label1">Daily Salary:</td>
							<td><g:textField class="textbox1" name="salary.dailySalary" value="${fieldValue(bean:salary, field:'dailySalary')}" /></td>
						</tr>
						<tr>
							<td class="label1">Bi-weekly Salary:</td>
							<td><g:textField class="textbox1" name="salary.biweeklySalary" value="${fieldValue(bean:salary, field:'biweeklySalary')}" /></td>
						</tr>
						<tr>
							<td class="label1">Monthly Salary:</td>
							<td><g:textField class="textbox1" name="salary.monthlySalary" value="${fieldValue(bean:salary, field:'monthlySalary')}" /></td>
						</tr>
						<tr><td height="10px"/></tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align="right">
				<hr class="hr1"/>
				<input class="button1" type="submit" value="Save" />
				<input class="button1" type="reset"  value="<g:if test="${!designation.id}">Clear</g:if><g:else>Undo Changes</g:else>" />
				</td>
			</tr>
		</table>

	</g:form>
</div>
</body>
</html>
